package portal.mybatis.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import portal.mybatis.dao.User;

public interface UserMapper {

    User selectByUserName(String userName);

    User selectByUserId(int userId);

    User checkUser(@Param("userName") String userName, @Param("userPassword") String userPassword);

    String getUserNameById(int userId);

    int addUser(User user);

    List<User> selectUserByPage(@Param("onePageCount") Integer onePageCount, @Param("currentPosition") Integer currentPosition);

    int userNum(Integer onePageCount);

    boolean deleteUser(int userId);

    boolean updateUser(User user);

}